@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin lineItem{
  cursor: pointer;
  padding-left: 20px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  font-family: SourceHanSansCN-Regular, SourceHanSansCN;

  &:first-child {
    margin-top: 2px;
  }

  &.active {
    background-color: rgba(81, 147, 255, 0.05);
    color: #5193FF;
  }

  label {
    cursor: pointer;
    font-weight: unset;
    text-overflow: ellipsis;
  }

  .action-container {
    cursor: pointer;
    margin-right: 20px;

    .el-icon-more {
      display: none;
      color: #5193FF;
    }
  }

  &:hover {
    .action-container .el-icon-more {
      display: inline-block;
    }
  }
}
// 标题+蓝色竖线
@mixin titleLine{
  .title-line {
    width: 4px;
    height: 20px;
    line-height: 20px;
    background: #5193FF;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }

  .title {
    color: #333333;
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
  }
}

/*多行文本溢出*/
@mixin ellipsisLine($param) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $param;
  -webkit-box-orient: vertical;
}

/*单行文本溢出*/
@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/** 卡片样式头部 **/
@mixin card-header {
  .card-header {
    @include titleLine;
  }
}

